package com.service;

import com.aop.Transaction;
import com.dao.DepDao;
import com.util.SessionUtil;
import org.springframework.stereotype.Component;

@Component
public class DepService {

    private DepDao depDao= SessionUtil.getDao(DepDao.class);


    @Transaction
    public int add(String name){
        return depDao.add(name);
    }


}
